Overload | Description |
---|---|
Attach(TEntity,TEntity) | Attaches an entity to the DataContext in either a modified or unmodified state by specifying both the entity and its original state. |
Attach(TEntity) | Attaches a disconnected or "detached" entity to a new DataContext when original values are required for optimistic concurrency checks. |
Attach(TEntity,Boolean) | Attaches an entity to the DataContext in either a modified or unmodified state. |